<template>
	<view class="meetSearch">
		<meet-list :dataList="dataList" :handType="2" @openDetail="openDetail"></meet-list>
		<sww-load-more :params="dataListParams"></sww-load-more>
	</view>
</template>

<script>
import meetList from '@/pagecomponents/meetList/index.vue';
import { pagingMixin } from '@/mixins/pagingMixin.js';
export default {
	mixins: [pagingMixin],
	components: {
		'meet-list': meetList
	},
	data() {
		return {
			searchName: ''
		};
	},
	onLoad() {
		this.initPage();
	},
	onReachBottom: function() {
		this._load_data();
	},
	methods: {
		// 从这个页面选择了活动后，刷新上一页并返回上一页（活动主页）
		initPage() {
			this._init_data('GetMeetingInfoList',{ name: this.searchName })
		},
		openDetail (item) {
			let pages = getCurrentPages();
			let current = pages[pages.length - 2].$vm // 上个页面
			current.changeMeet(item.pk_id)
			this.uniBack()
		}
	}
};
</script>

<style scoped lang="scss"></style>
